<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="head.jsp" %>
<%@ taglib uri="/WEB-INF/tld/3codetag.tld" prefix="ct" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<title>订单详情</title>
<style>
<!--
.vyt_bk{display: none;}
.info{display: block; height: 36px; line-height: 36px;}
.info table span:first-child{margin-left:10px;word-wrap:break-word; text-align:left; line-height: 12px;}
.info span:first-child{margin-left:10px; text-align: left;}
-->
</style>
</head>
<body>
<div class="title">订单信息</div>
	<ul class="radius_border box_form">
		<li><span>应付总价</span><em class="price"><fmt:formatNumber value="${order.orderTotal}" pattern="￥0.00" />
		</em></li>
	</ul>
	<ul class="radius_border box_form">
		<li class="li_hr"><b>航班信息</b>
			<s:if test="#request.order.voyagetype!=1">
				<span style="float: right; width: 200px;"><input type="radio" name="voyagetype" value="1" id="vyt_go" checked="checked"><label for="vyt_go">去程</label>
				<input type="radio" name="voyagetype" value="2" id="vyt_bk"><label for="vyt_bk">返程</label></span>
			</s:if>
		</li>
		<s:iterator value="#request.childrens" var="children">
			<div name="info" class="${traltype==1?'vyt_go':'vyt_bk'}">
			<li class="li_hr">
			<ct:code type="city" code="${scityCode}"/>
			-
			<ct:code type="city" code="${ecityCode}"/>
			&nbsp;<fmt:formatDate value="${sdate}" pattern="yyyy年MM月dd日"/>
			</li>
			<li><span>航班：</span>${aircom}&nbsp;${flightNo}&nbsp;舱位(${cabinCode})</li>
			<li><span>起飞：</span><fmt:formatDate value="${depTime}" pattern="HH:mm"/></li>
			
			<li><span>到达：</span><fmt:formatDate value="${arrTime}" pattern="HH:mm"/></li>
			<li class="li_hr"><span>备注：</span><font class="price">${policyDesc}</font>&nbsp;</li>
			<li>
				<p>折扣价<em class="price"><fmt:formatNumber value="${fare}" pattern="￥0" /></em></p>
				<p>机建燃油<em class="price"><fmt:formatNumber value="${tax}" pattern="￥0" /></em></p>
			</li>
		</div>
		</s:iterator>
	</ul>
	<ul class="radius_border box_form">
		<li class="li_hr"><b>乘客信息</b></li>
		<li>共${fn:length(passengers)}位乘客</li>
		<s:iterator value="#request.passengers" var="person" status="index">
		<li class="info">
			<table cellpadding="3" cellspacing="0">
				<tr>
					<td><span class="span_first">${passenger}</span></td>
					<td><s:if test="cardType==1">身份证</s:if>
					<s:if test="cardType==2">护照</s:if>
					<s:if test="cardType==3">军官证</s:if></td>
					<td>${cardNum}</td>		
				</tr>
			</table>
		</li>
		</s:iterator>
	</ul>
	
		<ul>
			<li style="text-align: center;">
				<form action="cardpay.jsp" method="post">
					<input name="sn" type="hidden" value="${order.systemSn}" />
					<button type="submit" class="next_button">立即支付</button>
				</form>
			</li>
		</ul>
	<s:if test="#request.pay==true"></s:if>
	<s:if test="#request.order.voyagetype!=1">
		<script type="text/javascript">
	$("input[name='voyagetype']").click(function(){
		$("div[name='info']").each(function(){$(this).hide();})
		$('.'+$(this).attr('id')).show();
	});
	</script>
	</s:if>
</body>
</html>